// Create a singleton class
var impresionPlugin = function() {
}
 
// ALERT de Prueba
impresionPlugin.prototype.show = function(str, success, fail) {
    PhoneGap.exec(success, fail, "ImpresionPlugin", "show", [str]);
};

// Imprimir Boleta ORIGINAL
impresionPlugin.prototype.imprimir_original = function(str, success, fail) {
    PhoneGap.exec(success, fail, "ImpresionPlugin", "imprimir_original", [str]);
};

// Imprimir Boleta Copia
impresionPlugin.prototype.imprimir_copia = function(str, success, fail) {
    PhoneGap.exec(success, fail, "ImpresionPlugin", "imprimir_copia", [str]);
};

navigator.impresionPlugin = new impresionPlugin();